package com.zky.gulimall.product.feign;

import com.zky.common.to.SkuReductionTo;
import com.zky.common.to.SpuBoundTo;
import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description spu远程feign
 * @Author 张开源
 * @Date 2022/10/4 0:22
 * @Version 1.0
 **/
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveReduction(SkuReductionTo reductionTo);
}
